Providing service address space for diagnostics collection

ABSTRACT

A system and technique are provided for providing a service address space. The system includes a service co-processor provided with a service address space. The service co-processor is attached to a main processor where the main processor is provided with a main address space. The service co-processor creates and maintains an independent copy of the main address space in the form of the service address space. The service co-processor receives from the main processor a command packet, determines a clock value for initiating a service function designated by the command packet, and updates the service address space until reaching the clock value. The service co-processor then performs the service function at the clock value.

BACKGROUND

Computing systems require memory in order to function. This computermemory is referenced by address and the full range of memory availableto the system is known as the address space. When a problem with acomputer system is being investigated the contents of this address spaceis of vital importance as it shows the state of the processes within thesystem.

In order to access the contents of the address space for diagnosticpurposes a system dump can be generated or carried out. However, asystem dump is a time-consuming process that causes a significant delayto other processes within the system.

In a busy production environment this dump delay can cause numeroussecondary problems, such as tasks timing-out and themselves abnormallyending (ABENDing) causing further system dumps to be generated orcarried out, and work backing-up to the point where the system becomesoverloaded. The knock-on effect of these dump delays can be veryserious, often more serious than the problem for which the dump wasoriginally carried out. In extreme cases, the system may not recoverback to a normal running state without a complete system reset.

The dump delays may also cause the system to appear unresponsive to theend-user, and the build-up of unprocessed work may prevent new work frombeing accepted.

Due to the problems described, it is common practice for customers todisable certain system dumps from being carried out at all, so thatcritical diagnostic information is lost. All these problems lead toreduced customer satisfaction and increased service costs.

In addition to system dumps, other diagnostic tools are limited by thecurrent machine architecture because of the performance overhead ofemploying them. One example is system tracing, where trace records arewritten out at pre-defined points in the processing, containing partialdumps of storage for particular areas of interest. The performanceoverhead of taking such trace records often means it is not viable torun with full tracing enabled in a production system, such that onceagain, vital diagnostics are lost if a failure occurs and problemdetermination is required.

BRIEF SUMMARY

According to one aspect of the present invention, a system and techniquefor providing service address space is disclosed. The system includes aservice co-processor provided with a service address space. The serviceco-processor is attached to a main processor where the main processor isprovided with a main address space. The service co-processor creates andmaintains an independent copy of the main address space in the form ofthe service address space. The service co-processor receives from themain processor a command packet, determines a clock value for initiatinga service function designated by the command packet, and updates theservice address space until reaching the clock value. The serviceco-processor then performs the service function at the clock value.

The described aspects of the invention provide the advantage ofrelieving a main processor of diagnostic service functions resulting inavoiding processing delays.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

For a more complete understanding of the present application, theobjects and advantages thereof, reference is now made to the followingdescriptions taken in conjunction with the accompanying drawings, inwhich:

FIG. 1 is block diagram of an example embodiment of a system inaccordance with the present invention;

FIG. 2 is a schematic diagram of an aspect of the system of FIG. 1 inaccordance with the present invention;

FIG. 3 is a block diagram of an embodiment of a computer system in whichthe present invention may be implemented;

FIG. 4 is a flow diagram of an example embodiment of an aspect of amethod in accordance with the present invention; and

FIG. 5 is a flow diagram of an example embodiment of an aspect of amethod in accordance with the present invention.

DETAILED DESCRIPTION

It will be appreciated that for simplicity and clarity of illustration,elements shown in the figures have not necessarily been drawn to scale.For example, the dimensions of some of the elements may be exaggeratedrelative to other elements for clarity. Further, where consideredappropriate, reference numbers may be repeated among the figures toindicate corresponding or analogous features.

In the following detailed description, numerous specific details are setforth in order to provide a thorough understanding of the invention.However, it will be understood by those skilled in the art that thepresent invention may be practiced without these specific details. Inother instances, well-known methods, procedures, and components have notbeen described in detail so as not to obscure the present invention.

A method and system are provided for a service co-processor to enablethe efficient collection of diagnostics. The described system providesan extension to a machine architecture to introduce a serviceco-processor and service address space, and instruction and commandpipes. The processing of the main processor is virtually unaffected bythe presence of the service co-processor in normal running.

The service co-processor is an adapted version of the main processorwith additional service functionality accessed by an extended serviceinstruction set. The service co-processor is connected to the mainprocessor by an instruction pipe and a command pipe. The serviceco-processor has its own independent copy of the address space, referredto as the service address space. The service address space may beinitialized by copying the main address space, using a new serviceaddress space initialize instruction, for example, in the form of a SASI(Shugart Associates System Interface) instruction.

The main processor may be adapted so that all instructions that modifyaddress space storage cause a storage delta packet (also referred to asa storage update packet) to be placed on the instruction pipe to bepassed to the service co-processor. The storage delta packet may containthe address and new value of the modified storage, plus associatedinformation such as the contents of the status register, registervalues, and system clock.

The service co-processor may take work from the instruction pipe and mayapply the storage deltas to the service address space. There may bemultiple storage delta packets in the instruction pipe at any one timesuch that the service co-processor runs behind the main processor, andthe service address space contains an historical copy of the mainaddress space. The service co-processor thus runs asynchronous to themain processor, having no requirement to keep pace with it, its workbeing queued up in a first in first out (FIFO) order in the instructionpipe.

The main processor may delegate service functions or diagnostic servicesto the service co-processor by placing a command packet on the commandpipe. Command packets may be processed by the service co-processor at ahigher priority to storage delta packets. For example, such servicefunctions or diagnostic services may include: the generating of a systemdump, a service trace, the cutting of system trace records, and thegathering of monitoring and statistics data. Command packets may resultin immediate or delayed actions on the service co-processor, forexample, the command to generate or initiate a system dump at aparticular value of the system clock would be actioned when the storagedelta packet pertaining to that time stamp was processed.

Referring to FIG. 1, an example embodiment of the described system 100is shown. A main processor 110 is provided with a main address space111. A service co-processor 120 is provided with a service address space121 and the service co-processor 120 is attached to the main processor110 by an instruction pipe 130 and a command pipe 140.

The main processor 110 may include an instruction sending component 150for sending instructions to the service co-processor 120. Theinstruction sending component 150 may include an instructionintercepting component 151 for intercepting instructions that modify themain address space 111. The instruction sending component 150 mayinclude a storage delta packet generator component 152 for generating astorage delta packet which may contain the address and new value of themodified storage, plus associated information such as the contents ofthe status register, register values, and system clock. The instructionsending component 150 may include a storage delta packet sendingcomponent 153 for sending the generated storage delta packet to theservice co-processor 120 via the instruction pipe 130.

The service co-processor 120 may include a service address spaceinitiating or resetting component 122. The service address spaceinitializing or resetting component 122 may initialize the serviceaddress space 121 of the service co-processor 120 by copying the mainaddress space 111. The service address space initiating or resettingcomponent 122 may also reset the service address space 121, for example,after a system dump, by again copying the contents of the main addressspace 111 to the service address space 121.

The service co-processor 120 may include a storage update receivingcomponent 160 for taking work from the instruction pipe 130 and applyingto the service address space 121. The storage update receiving component160 may include a storage delta packet monitoring component 161 formonitoring the instruction pipe 130 for new storage delta packets. Aprocessing availability component 162 may be provided for determining ifthe service co-processor 120 has sufficient processing to carry out theupdate. If it does not have sufficient processing availability, thestorage delta packet may wait in a queue in the instruction pipe.

The storage update receiving component 160 may include a storage deltapacket applying component 163 for applying a storage delta packet to theservice address space 121.

The main processor 110 may also include a service delegation component170 for delegating service functions to the service co-processor 120,for example, the generating or initiation of a system dump, or systemtracing. The service delegation component 170 may send command packetsvia the command pipe 140 to a command processing component 180 of theservice co-processor 120. The command processing component 180 mayactivate the command immediately or may wait until a required time stampof the service address space 121 before processing the command.

The service co-processor 120 is concerned with updating address spacestorage and consequently has less work to do than the main processor110. This spare capacity is available to perform service functionsdelegated by the main processor 110, such as generating or initiatingsystem dumps, and to execute commands in the service instruction set.

Referring to FIG. 2, a schematic diagram 200 shows an example of detailof the described system. An instruction pipe 230 between a mainprocessor and a service co-processor is shown with multiple storagedelta packets 231-233 queued for processing by the service co-processor.A storage delta packet 231 is shown as including primary information 234in the form of the address and a new value of the modified storage atthe address, and secondary information 235 in the form of statusregister, register values, and system clock. The system clock results inthe service address space recording the time of updates as applied tothe main address space, thereby providing an historical copy of the mainaddress space and allowing the service co-processor to workasynchronously from the main processor.

The command pipe may be processed by the service co-processor at ahigher priority to the instruction pipe, so the service address spacewill never be updated past the point at which the dump should be taken.

The service co-processor architecture may be incorporated in futuresystem designs. However, existing computer systems may also be adaptedby providing the service co-processor and associated storage in astand-alone system connected to the main processor by a high-speed linksuch as a fiber-optic cable.

The stand-alone service co-processor system may be a completelypurpose-built design, with the service instruction set ‘built-in’ to theprocessor. Alternatively it could be built on a standard machineplatform with a virtual service instruction set supported by the serviceco-processor application software.

The instruction and command pipes may be carried on the high-speed link.A stand-alone service co-processor may require an upgrade to themicrocode/millicode of the main processor to place the storage deltapackets and command packets on the instruction and command pipesrespectively.

Another advantage of a stand-alone service co-processor is that it wouldstill be available to provide critical diagnostics should the mainprocessor system suffer a catastrophic failure.

The described system assists with the existing issues pertaining toproblem determination and diagnostic gathering/FFDC (First Failure DataCapture) for customers. As systems are required to run without outagesand for extended periods of time (“24/7”), any ability to assist withthe gathering of diagnostic information in a timely and unobtrusivemanner is vital to maintain an ability to resolve problems andout-of-line situations for customers.

As the architecture described herein would always be available andactively capturing system information and the full range of availablediagnostic data, it would ensure that FFDC was always enabled and activewhen problems occurred. This would prevent the common situation existingtoday, where customers often run without diagnostic data capture active,and hence are forced to recreate a failure in order to gather thenecessary information for problem resolution. This is in fact a bestcase scenario; often problems cannot be reproduced and so have to remainundiagnosed until the next production outage.

Modern computing systems have become very complex and theirimplementation varies greatly from one system to another, each systemimplementing a subset of the potential features. A discussion of thedescribed service co-processor architecture with reference to all thepotential system configurations would be unwieldy, raising numerousconfiguration specific questions. Similarly, the described system couldhave multiple implementations, having varying levels of function andcomplexity.

In the described system configuration, the entire address space mapsdirectly to ‘real’ system memory, there is no concept of virtualstorage. Furthermore, only one processor may have access to the addressspace, and processing within the address space is single-threaded.

Referring to FIG. 3, an exemplary system for implementing aspects of theinvention includes a data processing system 300 suitable for storingand/or executing program code including at least one processor 301coupled directly or indirectly to memory elements through a bus system303. The memory elements may include local memory employed during actualexecution of the program code, bulk storage, and cache memories whichprovide temporary storage of at least some program code in order toreduce the number of times code must be retrieved from bulk storageduring execution.

The memory elements may include system memory 302 in the form of readonly memory (ROM) 304 and random access memory (RAM) 305. A basicinput/output system (BIOS) 306 may be stored in ROM 304. System software307 may be stored in RAM 305 including operating system software308/309. Software applications 310 may also be stored in RAM 305.

The system 300 may also include a primary storage means 311 such as amagnetic hard disk drive and secondary storage means 312 such as amagnetic disc drive and an optical disc drive. The drives and theirassociated computer-readable media provide non-volatile storage ofcomputer-executable instructions, data structures, program modules andother data for the system 300. Software applications may be stored onthe primary and secondary storage means 311, 312 as well as the systemmemory 302.

The computing system 300 may operate in a networked environment usinglogical connections to one or more remote computers via a networkadapter 316.

Input/output devices 313 may be coupled to the system either directly orthrough intervening I/O controllers. A user may enter commands andinformation into the system 300 through input devices such as akeyboard, pointing device, or other input devices (for example,microphone, joy stick, game pad, satellite dish, scanner, or the like).Output devices may include speakers, printers, etc. A display device 314is also connected to system bus 303 via an interface, such as videoadapter 315.

Referring to FIG. 4, a flow diagram 400 shows an embodiment of a firstaspect of the described method of processing address space updates. Theflow diagram 400 shows the processing carried out in the main processor410 and a service co-processor 420.

The main processor 410 may monitor 411 for instructions that modify themain address space. If an instruction that modifies the main addressspace is identified 412, a storage delta packet is generated. Thestorage delta packet may be sent 413 on an instruction pipe to theservice co-processor 420. The monitoring 411 for instructions continuesas shown by the method loop 414.

At the service co-processor 420, a service address space is initialized421 or reset by copying the main address space. The service co-processor420 monitors 422 for storage delta packets arriving on the instructionpipe. A storage delta packet may be received 423 and the monitoringcontinues 424 for a next storage delta packet to arrive. It may bedetermined 425 if there is available processing for a received storagedelta packet. If there is not sufficient processor availability, thestorage delta packet remains queued 426 in the instruction pipe. Ifthere is sufficient processor availability, the storage delta packet isapplied 427 to the service address space.

One example application of the described architecture is the delegationof a system dump request from the main to the service co-processor. Thisdelegation may avoid the initial ‘freeze-up’ delay on the main processorwhereby the whole system is frozen during the initial phase of dumpprocessing.

A single system dump may be carried out on the service co-processor.Once this system dump is initiated, the service co-processor stopsupdating the service address space. Once the system dump has been takenon the service co-processor, it must be reset. This reset processinginvolves copying the contents of the main address space to the serviceaddress space and then re-starting the process of mirroring all storageupdates to the service co-processor.

Referring to FIG. 5, a flow diagram 500 shows an example embodiment of asecond aspect of the described method of carrying out a system dumprequest. The flow diagram 500 shows the processing carried out in themain processor 510 and a service co-processor 520.

The main processor 510 may issue 511 a system dump request. The mainprocessor 510 may build 512 a system dump request and place it on acommand pipe. The system dump request may contain: a system dumpcommand, an identifier, and the system clock value at which time thedump should be initiated/processed. The main processor 510 may continue513 its processing without any delay.

The service co-processor 520 may receive 521 the system dump request andmay determine the clock value at which the system dump should beinitiated/processed. The storage update packets may be applied 522 tothe service address space until the system clock value at which the dumpshould be carried out is reached. The system dump is then carried out523.

Example

An example of a simple computer system as described above may be asafety-critical control system in a car, such as a ‘brake-by-wire’controller, which might need to take a diagnostic dump whilst stillproviding full braking function. Such a system cannot afford to‘freeze-up’ while it processes a system dump.

A brake-by-wire system in a car replaces traditional components such asthe pumps, cylinders and belts with electronic sensors and actuatorscontrolled by software. The safety critical nature of such systems meansthey have not been widely implemented in automobiles.

The storage update packet for such a system could look like this:

-   -   System clock value;    -   Address of updated storage;    -   Length of updated storage;    -   Value of updated storage.

This storage update packet may consist of fixed length fields for thesystem clock value, address and length of the updated storage, and avariable length field to contain the new value of the updated storage.

A system dump instruction packet may be as follows:

-   -   Command identifier for system dump command;    -   System clock value when dump should be carried out.

The service co-processor architecture avoids the long processing delaysthat can occur when the main processor has to undertake servicefunctions such as taking a system dump and writing trace records. Italso relieves the main processor from the above operations to avoiddelays in other processes. The described system makes it practical forusers to fully utilize service tools such as dump and trace in aproduction environment, as the performance overhead of doing so isalmost completely eliminated from the main processor.

The described system also allows for the development of new servicetools that would have been either impossible or impractical, to developpreviously. This in turn greatly assists with problems involved in datagathering for FFDC and problem determination. The result will beimproved problem resolution times and help restore customer satisfactionfor out of line situations and outages.

A further benefit of the described system is the ability for a supportteam to log directly on to the service co-processor system to diagnoseproblems, accessing retained system dumps for immediate analysis insituations where similar access to production systems would not beauthorized.

As will be appreciated by one skilled in the art, aspects of the presentinvention may be embodied as a system, method or computer programproduct. Accordingly, aspects of the present invention may take the formof an entirely hardware embodiment, an entirely software embodiment(including firmware, resident software, micro-code, etc.) or anembodiment combining software and hardware aspects that may allgenerally be referred to herein as a “circuit,” “module” or “system.”Furthermore, aspects of the present invention may take the form of acomputer program product embodied in one or more computer readablemedium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may beutilized. The computer readable medium may be a computer readable signalmedium or a computer readable storage medium. A computer readablestorage medium may be, for example, but not limited to, an electronic,magnetic, optical, electromagnetic, infrared, or semiconductor system,apparatus, or device, or any suitable combination of the foregoing. Morespecific examples (a non-exhaustive list) of the computer readablestorage medium would include the following: an electrical connectionhaving one or more wires, a portable computer diskette, a hard disk, arandom access memory (RAM), a read-only memory (ROM), an erasableprogrammable read-only memory (EPROM or Flash memory), an optical fiber,a portable compact disc read-only memory (CD-ROM), an optical storagedevice, a magnetic storage device, or any suitable combination of theforegoing. In the context of this document, a computer readable storagemedium may be any tangible medium that can contain, or store a programfor use by or in connection with an instruction execution system,apparatus, or device.

A computer readable signal medium may include a propagated data signalwith computer readable program code embodied therein, for example, inbaseband or as part of a carrier wave. Such a propagated signal may takeany of a variety of forms, including, but not limited to,electro-magnetic, optical, or any suitable combination thereof. Acomputer readable signal medium may be any computer readable medium thatis not a computer readable storage medium and that can communicate,propagate, or transport a program for use by or in connection with aninstruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmittedusing any appropriate medium, including but not limited to wireless,wireline, optical fiber cable, RF, etc., or any suitable combination ofthe foregoing.

Computer program code for carrying out operations for aspects of thepresent invention may be written in any combination of one or moreprogramming languages, including an object oriented programming languagesuch as Java, Smalltalk, C++ or the like and conventional proceduralprogramming languages, such as the “C” programming language or similarprogramming languages. The program code may execute entirely on theuser's computer, partly on the user's computer, as a stand-alonesoftware package, partly on the user's computer and partly on a remotecomputer or entirely on the remote computer or server. In the latterscenario, the remote computer may be connected to the user's computerthrough any type of network, including a local area network (LAN) or awide area network (WAN), or the connection may be made to an externalcomputer (for example, through the Internet using an Internet ServiceProvider).

It will be equally clear to one of skill in the art that all or part ofa logic arrangement according to the preferred embodiments of thepresent invention may suitably be embodied in a logic apparatuscomprising logic elements to perform the steps of the method, and thatsuch logic elements may comprise components such as logic gates in, forexample a programmable logic array or application-specific integratedcircuit. Such a logic arrangement may further be embodied in enablingelements for temporarily or permanently establishing logic structures insuch an array or circuit using, for example, a virtual hardwaredescriptor language, which may be stored and transmitted using fixed ortransmittable carrier media.

Aspects of the present invention are described below with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems) and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer program instructions. These computer program instructions maybe provided to a processor of a general purpose computer, specialpurpose computer, or other programmable data processing apparatus toproduce a machine, such that the instructions, which execute via theprocessor of the computer or other programmable data processingapparatus, create means for implementing the functions/acts specified inthe flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computerreadable medium that can direct a computer, other programmable dataprocessing apparatus, or other devices to function in a particularmanner, such that the instructions stored in the computer readablemedium produce an article of manufacture including instructions whichimplement the function/act specified in the flowchart and/or blockdiagram block or blocks.

The computer program instructions may also be loaded onto a computer,other programmable data processing apparatus, or other devices to causea series of operational steps to be performed on the computer, otherprogrammable apparatus or other devices to produce a computerimplemented process such that the instructions which execute on thecomputer or other programmable apparatus provide processes forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof code, which comprises one or more executable instructions forimplementing the specified logical function(s). It should also be notedthat, in some alternative implementations, the functions noted in theblock may occur out of the order noted in the figures. For example, twoblocks shown in succession may, in fact, be executed substantiallyconcurrently, or the blocks may sometimes be executed in the reverseorder, depending upon the functionality involved. It will also be notedthat each block of the block diagrams and/or flowchart illustration, andcombinations of blocks in the block diagrams and/or flowchartillustration, can be implemented by special purpose hardware-basedsystems that perform the specified functions or acts, or combinations ofspecial purpose hardware and computer instructions.

Improvements and modifications can be made to the foregoing withoutdeparting from the scope of the present invention.

1-6. (canceled)
 7. A system, comprising: a service co-processor providedwith a service address space, the service co-processor attached to amain processor wherein the main processor is provided with a mainaddress space, wherein the service co-processor updates the serviceaddress space to create and maintain an independent copy of the mainaddress space in the form of the service address space; and wherein theservice co-processor is configured to: receive a system dump requestfrom the main processor; initiate a system dump; responsive toinitiating the system dump, cease updating the service address space;and upon completion of the system dump, reset the service address space.8. The system of claim 7, wherein the service co-processor is configuredto reset the service address space by copying contents of the mainaddress space to the service address space.
 9. The system of claim 7,wherein the service co-processor is configured to monitor a command pipebetween the main processor and the service co-processor for a commandpacket having the system dump request.
 10. The system of claim 7,wherein the service co-processor is configured to initiate the systemdump at a system clock value specified in the system dump request. 11.The system of claim 7, wherein the system dump request includes a dumpcommand and a system clock value, and wherein the service co-processoris configured to: update the service address space until a system clockreaches the system clock value; and initiate the system dump at thesystem clock value.
 12. The system of claim 7, wherein the serviceco-processor is configured to determine when to initiate the system dumpbased on the system dump request.
 13. A computer program product forproviding service functions, the computer program product comprising: anon-transitory computer readable medium having computer readable programcode embodied therewith, the computer readable program code executableby a service co-processor to: update a service address space provided tothe service co-processor to create and maintain an independent copy of amain address space provided to a main processor in the form of theservice address space; receive a system dump request from the mainprocessor; initiate a system dump; responsive to initiating the systemdump, cease updating the service address space; and upon completion ofthe system dump, reset the service address space.
 14. The computerprogram product of claim 13, wherein the program instructions areexecutable to reset the service address space by copying contents of themain address space to the service address space.
 15. The computerprogram product of claim 13, wherein the program instructions areexecutable to monitor a command pipe between the main processor and theservice co-processor for a command packet having the system dumprequest.
 16. The computer program product of claim 13, wherein theprogram instructions are executable to initiate the system dump at asystem clock value specified in the system dump request.
 17. Thecomputer program product of claim 13, wherein the system dump requestincludes a dump command and a system clock value, and wherein theprogram instructions are executable to: update the service address spaceuntil a system clock reaches the system clock value; and initiate thesystem dump at the system clock value.
 18. The computer program productof claim 13, wherein the program instructions are executable todetermine when to initiate the system dump based on the system dumprequest.